<?php

// show off: template
require_once("configuration.php");
require_once("includes/function.php");
require_once("includes/io.php");
require_once("includes/template.php");
require_once("includes/category.php");


// INIT VARIABLES
$categories = "";
$menu_rows = "";
$template = new template("default");
// Category section
require_once("includes/list.categories.php");
// cart
require_once("includes/function.number.php");
require_once("includes/product.php");
require_once("includes/cart.php");
require_once("includes/list.cart.php");
// Navigator
require_once("includes/page.php");
require_once("includes/list.menu.php");

// FAQ
require_once("includes/faq.php");
require_once("includes/function.parse.php");
$faq_rows = "";
$faq = new faq();
$faq_queries = $faq->get_faqs();
while ($obj = $mysql->fo($faq_queries)) {
    $faq = faq::static_set_object($obj);
    $faq->content = parse_html($faq->content);
    eval("\$faq_rows .= \"" . $template->get("faq.rows") . "\";");
}

// ACTIONs


eval("\$testimonials = \"" . $template->get("element.testimonial") . "\";");
eval("\$content = \"" . $template->get("faq.content") . "\";");
eval("\$cart = \"" . $template->get("body.cart") . "\";");
eval("\$header = \"" . $template->get("header") . "\";");
eval("\$body = \"" . $template->get("body") . "\";");
eval("\$footer = \"" . $template->get("footer") . "\";");
eval("\$index = \"" . $template->get("index") . "\";");

// display all
echo ($index); // can use echo $template->compress($index) to compress size of html

require_once("configuration.end.php");
?>